package com.itheima.a03.bean的生命周期;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/*
* bean的生命周期各个阶段，通过后处理器来增强
* */
@SpringBootApplication
public class A03 {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(A03.class, args);
        /*为了展示bean的生命周期，所以我们close,以展示销毁阶段*/
        context.close();
    }
}
